import java.util.Scanner;

/**
 * 输入一个字符串和一个整数 k ，截取字符串的前k个字符并输出
 */
public class HJ46 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            String str = scanner.nextLine();
            int k = scanner.nextInt();
            System.out.println(str.substring(k));
        }
    }
}
